package com.itheima.client;

import com.itheima.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "provider",fallback = UserClientFallback.class)
public interface UserClient {

    @GetMapping("/user/{id}")
    User userById(@PathVariable("id") long id);
}
